using MicroMsg.Resource.@string;
using System;
using System.Windows.Media;
namespace MicroMsg.UI.UserContrl
{
	public class FMessageFriendInfo : IFmessageInfo
	{
		public string fromUsername = "";
		public string nickname = "";
		public string quanPin = "";
		public string pyInitial = "";
		public string source = "";
		public int imageFlag;
		public int scene;
		public string phoneNumMD5 = "";
		public string fullPhoneNumMD5 = "";
		public long qqNum;
		public string qqNickname = "";
		public string qqRemark = "";
		public int nAlbumFlag;
		public int nAlbumStyle;
		public string strAlbumbgimgid;
		public int nSnsFlag;
		public string strSnsbgimgid;
		public ulong nSnsBGObjectID;
		public string Title
		{
			get
			{
				int num = this.scene;
				string result;
				if (num != 4)
				{
					if (num != 10)
					{
						if (num != 32)
						{
							result = strings.FMsgFriendsTitle;
						}
						else
						{
							result = strings.Sns_FFmsg_Title;
						}
					}
					else
					{
						result = strings.FMsgContactTitle;
					}
				}
				else
				{
					result = strings.FMsgFriendQQTitle;
				}
				return result;
			}
		}
		public string NickName
		{
			get
			{
				if (string.IsNullOrEmpty(this.nickname))
				{
					return this.fromUsername;
				}
				return this.nickname;
			}
		}
		public string UserInfo
		{
			get
			{
				return FMessageHelper.getUsrInfoContent(this.phoneNumMD5, this.fromUsername, this.scene);
			}
		}
		public string UserName
		{
			get
			{
				if (string.IsNullOrEmpty(this.fromUsername))
				{
					return "";
				}
				return this.fromUsername;
			}
		}
		public string ConversationInfo
		{
			get
			{
				string nickName = this.NickName;
				return string.Format(strings.FMsgFriendsInfo, nickName);
			}
		}
		public ImageSource FlagImg
		{
			get
			{
				int num = this.scene;
				if (num == 4)
				{
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/qq.png") as ImageSource;
				}
				if (num == 10)
				{
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/phone.png") as ImageSource;
				}
				switch (num)
				{
				case 31:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Plugin/FaceBook/fbrecomend.png") as ImageSource;
				case 32:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/circle.png") as ImageSource;
				default:
					return new ImageSourceConverter().ConvertFromString("/Resource/Img/Chat/ffmsg/friends.png") as ImageSource;
				}
			}
		}
	}
}
